﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace SkyDriveConnector
{
    public class CustomProperties : UserControl

{

        public static readonly DependencyProperty ItemPathProperty = DependencyProperty.RegisterAttached(

                         "ItemPath",                  //Name of the property

                         typeof( string ),             //Type of the property

                         typeof(CustomProperties),   //Type of the provider of the registered attached property

                         null );                           //Callback invoked in case the property value has changed

        public static void SetItemPath(DependencyObject obj, string value)
        {

            obj.SetValue(ItemPathProperty, value);

        }



        public static string GetItemPath(DependencyObject obj)
        {

            return (string)obj.GetValue(ItemPathProperty);

        }

        public static readonly DependencyProperty ItemIdProperty = DependencyProperty.RegisterAttached(

                         "ItemId",                  //Name of the property

                         typeof(string),             //Type of the property

                         typeof(CustomProperties),   //Type of the provider of the registered attached property

                         null);                           //Callback invoked in case the property value has changed

        public static void SetItemId(DependencyObject obj, string value)
        {

            obj.SetValue(ItemIdProperty, value);

        }



        public static string GetItemId(DependencyObject obj)
        {

            return (string)obj.GetValue(ItemIdProperty);

        }
                

    }
}
